FROM centos:7.9.2009
MAINTAINER xfp w_cw_xfp0@shtel.com.cn

ENV APPLICATION_VERSION=2.0 \
    JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk" \
    PATH="$JAVA_HOME/bin:$PATH" \
    BASE_DIR="/home/application"

RUN set -x \
    && yum update -y \
    && yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel wget iputils nc vim libcurl

WORKDIR app
ADD demo-0.0.1-SNAPSHOT.jar /app/app.jar

EXPOSE 8080

ENTRYPOINT ["nohup","java","-jar","/app/app.jar"]

